﻿import request from '/@/utils/request';
enum Api {
  AddSysFeedback = '/api/sysFeedback/add',
  DeleteSysFeedback = '/api/sysFeedback/delete',
  UpdateSysFeedback = '/api/sysFeedback/update',
  SaveSysFeedback = '/api/sysFeedback/save',
  PageSysFeedback = '/api/sysFeedback/page',
  ExportSysFeedback = 'api/sysFeedback/export',
}

//导出意见反馈
export const exportSysFeedbackExcel=(params?:any)=>
	request({
		url:Api.ExportSysFeedback,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加意见反馈
export const addSysFeedback = (params?: any) =>
	request({
		url: Api.AddSysFeedback,
		method: 'post',
		data: params,
	});

// 删除意见反馈
export const deleteSysFeedback = (params?: any) => 
	request({
			url: Api.DeleteSysFeedback,
			method: 'post',
			data: params,
		});

// 编辑意见反馈
export const updateSysFeedback = (params?: any) => 
	request({
			url: Api.UpdateSysFeedback,
			method: 'post',
			data: params,
		});

// 保存意见反馈
export const saveSysFeedback = (params?: any) => 
	request({
			url: Api.SaveSysFeedback,
			method: 'post',
			data: params,
		});

// 分页查询意见反馈
export const pageSysFeedback = (params?: any) => 
	request({
			url: Api.PageSysFeedback,
			method: 'post',
			data: params,
		});


